package com.whz.composite;

import java.util.HashSet;
import java.util.List;
import java.util.TreeSet;

/**
 * @ClassName MainTest
 * @Description TODO
 * @Author hong-zhi
 * @Date 2021/5/5 23:21
 * @Version 1.0
 */
public class MainTest {
    public static void main(String[] args) {
//        InstrumentedHashSet<String> s = new InstrumentedHashSet<>();
//        s.addAll(List.of("whz", "zzy", "sxm"));
//        System.out.println(s.getAddCount());
        InstrumentedSet<String> is1 = new InstrumentedSet<>(new TreeSet<>());
        InstrumentedSet<String> is2 = new InstrumentedSet<>(new HashSet<>());
        is1.addAll(List.of("whz", "zzy", "sxm"));
        is2.addAll(List.of("whz", "zzy", "sxm"));
        System.out.println(is1.getAddCount());
        System.out.println(is2.getAddCount());

    }
}
